#include <iostream>
#include "FigureContainer.h"

using namespace std;

int main()
{
    FigureContainer f;
    std::vector<double> data = {0,3,4,5};
    f.addFigure(Figure::makeFigure(rectangle, data));
    data = {2,3,4};
    f.addFigure(Figure::makeFigure(circle, data));
    data = {1,0, 2,3, 5,9};
    f.addFigure(Figure::makeFigure(triangle, data));
    try
    {
        f.writeFile(R"(out.txt)");
    } catch(exceptionType err)
    {
        std::cout << "File was not written" << std::endl;
    }
    return 0;
}
